<html>
	<head>
	<title>Video Tienda</title>
	</head>

	<body>
	<div id="principal" style="width:900px;">
<!-- HEADER -->
		<div id="header" style="width: 900px; height: 100px; position: relative;"> <h2>Video Tienda </h2></div>
<!-- END HEADER -->
		<div id="content" style="width: 900px;  position: relative; float:left;"> 

<!-- MENU -->			
			<div id="menu" style="width: 100px; position: relative; float:left;">
				<table>
					<thead>
						<tr>
							<td>Menu</td>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td><a href="/index">Inicio</a></td>
						</tr>
						<tr>
							<td><a href="/index/cartelera/">Cartelera</a></td>
						</tr>
						<tr>
							<td><a href="/index/catalogo/">Catalogo</a></td>
						</tr>
						<tr>
							<td>Info</td>
						</tr>
						<tr>
							<td>login</td>
						</tr>
						<tr>
							<td><a href="/admin/registro/">registro Pelicula</a></td>
						</tr>
					</tbody>
				</table>
			</div>
<!-- END MENU -->	
			<div id="infoContent" style="width: 800px; position: relative; float:left;">
				<h3>Cartelera</h3>
				
				<?php //var_export($this->catalogo);?>
				<?php if($this->catalogo != null){						
						foreach ($this->catalogo as $pelicula) {
							//if ($pelicula['Mformato'] == 'imagen') {
								?>
								<?php if($pelicula['Mlink'] != null || $pelicula['Mlink'] != ''){ ?>
								<div id="peliCartelera" style="width: 200px; position: relative; float: left;">
										<div id="namePC" style="position: relative;"><?php echo $pelicula['Pnombre']; ?></div>
										<div id="imgPC" style="position: relative; width: 188px; height: 280px;"><?php echo '<img src="'.$pelicula['Mlink'].'"/>'; ?></div>
										<div id="vermas"><a href="/index/vermas/id/<?php echo $pelicula['IDP']; ?>">+ Ver Mas</a></div>
								</div>
								<?php 
								//echo '-->'.$pelicula['Pnombre'].' imagen:: <img src="'.$pelicula['Mlink'].'"/><br/>';
								}
							}
						//}
					
				}else{
					?>
					<h3>Lo sentimos en este momento no tenemos una cartelera</h3>
					<?php 
				}?>
				
				
				
				
				
				
			</div>

		</div>
<!-- FOOTER -->
		<div id="footer" style="width: 900px; height: 100px; position: relative; float:left; top:50px;"> F&G Ingenieria A.U.  Cali - Colombia</div>
<!-- END FOOTER -->
	</div>
	
	
	
	</body>
</html>
